package com.zy.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author: 11473
 * @time: 2019/9/27 16:20
 */
public class User {

    private Integer userId;
    private String userName;
    private String userPsw;
    private Integer userAge;
    private String userAddress;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date userRegDate;
    private String userImg;
    private Integer isDeleted;

    public User() {
    }

    public User(Integer userId, String userName, String userPsw, Integer userAge, String userAddress, Date userRegDate, String userImg, Integer isDeleted) {
        this.userId = userId;
        this.userName = userName;
        this.userPsw = userPsw;
        this.userAge = userAge;
        this.userAddress = userAddress;
        this.userRegDate = userRegDate;
        this.userImg = userImg;
        this.isDeleted = isDeleted;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPsw() {
        return userPsw;
    }

    public void setUserPsw(String userPsw) {
        this.userPsw = userPsw;
    }

    public Integer getUserAge() {
        return userAge;
    }

    public void setUserAge(Integer userAge) {
        this.userAge = userAge;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public Date getUserRegDate() {
        return userRegDate;
    }

    public void setUserRegDate(Date userRegDate) {
        this.userRegDate = userRegDate;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
}
